<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        table {
            border: 1px solid black;
            border-collapse: collapse;
            margin: 10px auto;
        }

        th,
        td {
            border: 1px solid black;
            padding: 15px;
            text-align: center;
        }
        #empTable tr:nth-child(2n){
            background-color: violet;
        }
        th{
            background-color: #999999;
        }
        a{
            text-decoration: none;
            color: black;
        }
        .page{
            text-align: center;
        }
        .page a{
            text-decoration: none;
            color: black;
            padding: 0 20px;
        }
        .welcom{
            margin-top: 30px;
            margin-left: 910px;
            color: violet;
        }
    </style>
</head>

<body>
<div class="welcom">欢迎你,${user.username}</div>
<table id="empTable">
    <thead>
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>密码</th>
        <th>手机号</th>
        <th>性别</th>
        <th>角色</th>
        <th>操作</th>
    </tr>
    </thead>
    <#list list as li>
        <tr>
            <td>${li.user_id}</td>
            <td>${li.username}</td>
            <td>${li.password}</td>
            <td>${li.tel}</td>
            <td>${li.sex}</td>
            <td>${li.role.rolename}</td>
            <td><a href="/daleteUser?user_id=${li.user_id}">删除</a></td>
        </tr>
    </#list>
    <tbody>
    </tbody>
</table>
</body>

</html>